<?php

namespace app\api\validate\cms;

use tmcore\base\BaseValidate;

/**
 * 文章栏目验证器
 */
class ArticleCateValidate extends BaseValidate
{
    protected $rule = [
        'id' => 'require',
    ];

    protected $message = [
        'id.require' => '栏目id不能为空',
    ];

    /**
     * 详情场景
     * @return ArticleCateValidate
     */
    public function sceneDetail()
    {
        return $this->only(['id']);
    }
}